package com.xjc.service.impl;

import com.xjc.mapper.PersonMapper;
import com.xjc.pojo.Person;
import com.xjc.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author:谢君臣
 * @Date:2021/6/4-16:46
 * @version:1.0
 * @function:
 */
@Service
public class HelloServiceimpl implements HelloService {

    @Autowired
    private PersonMapper personMapper;
    @Override
    public List<Person> sayHello() {
        return personMapper.getListPerson();
    }
}
